package day6;

/**
 * @author oldliu
 * @since 1.0
 */
public class SchoolTest {
    public static void main(String[] args) {
        School s=new School();
        s.classroom=15;
        s.labs=3;
        s.name="合肥科海中心";
        s.addr="马鞍山路10号";
        System.out.println(s);
        s.show();
        System.out.println(">>>>>>>>>>>>>>>>>>");
        System.out.println("名字叫"+s.name);
        System.out.println(">>>>>>>>>>>>>>>>>>>");
        s.classroom++;
        s.labs++;
        s.addr="合工大里面";
        s.show();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>");
        School s2=null;
        System.out.println(s2);
        s2.name="sss";
        System.out.println(s2.name);
    }
}
